//
//  AISetVipInfoShowCell.m
//  Mia
//
//  Created by Vill on 2024/1/13.
//

#import "AISetVipInfoShowCell.h"

@interface AISetVipInfoShowCell ()

@property (weak, nonatomic) IBOutlet UIView *bgContain;
@property (weak, nonatomic) IBOutlet UILabel *vipLbl;

@end

@implementation AISetVipInfoShowCell

+(instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *ID = @"AISetVipInfoShowCell";
    AISetVipInfoShowCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if(cell == nil){
       cell = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil].lastObject;
    }
    return cell;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.bgContain.layer.cornerRadius = PTW(27);
    self.bgContain.layer.masksToBounds = YES;
    
    AIUserInfoModel *model = [[AIUserInfoManager shareManager] userInfo];
    self.vipLbl.text = model.vipExpireTime;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
